const mysql = require('mysql2')

const pool = mysql.createPool({
    host: 'localhost',
    port: 3306,
    user: 'root',
    password: 'admin',
    database: 'vue_tea',
    connectionLimit: 10,
    waitForConnections: true
})

module.exports = pool.promise()